Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes tailer.droppedStreams slice bounded. #5334

Merged
merged 3 commits into from
Feb 7, 2022

Conversation

kavirajk
Copy link
Contributor

@kavirajk kavirajk commented Feb 7, 2022

Signed-off-by: Kaviraj kavirajkanagaraj@gmail.com

What this PR does / why we need it:
For slow receiver, this dropped streams may cause ingester memory to keep increasing.

Sometimes OOMing the ingester.

Which issue(s) this PR fixes:
Fixes #4797

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated
  • Add an entry in the CHANGELOG.md about the changes.

For slow receiver, this dropped streams may cause ingester memory to keep increasing.

Sometimes OOMing the ingester.

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
@kavirajk kavirajk requested a review from a team as a code owner February 7, 2022 09:08
pkg/ingester/tailer.go Outdated Show resolved Hide resolved
pkg/ingester/tailer.go Show resolved Hide resolved
Update tests

Adding logging when slice is dropped

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
@pull-request-size pull-request-size bot added size/M and removed size/XS labels Feb 7, 2022
pkg/ingester/tailer.go Outdated Show resolved Hide resolved
pkg/ingester/tailer.go Outdated Show resolved Hide resolved
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @kavirajk 👍

@kavirajk kavirajk merged commit 2db3092 into main Feb 7, 2022
@kavirajk kavirajk deleted the tailer-dropped-streams-bounded branch February 7, 2022 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limit dropped streams
2 participants